import {commafy} from 'xe-utils'

//价格格式化
export const formatPrice = (price=0,opts={})=>{
	const {digits=2}=opts
	return commafy(Number(price)/100,{digits})
}